package org.example.config;

import org.example.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {

    // <bean id="user" class="org.example.pojo.User"/>
    // 方法名相当于bean中的id
    // 返回值类型相当于bean中的class
    @Bean
    public User user() {
        return new User();
    }
}
